﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace new_Seminario
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Roles.IsUserInRole("Administrador"))
            {
                NavigationMenuAdministrador.Visible = true;
            }
            else if (Roles.IsUserInRole("Cocinero"))
            {
                NavigationMenuCocinero.Visible = true;
            }
            else if (Roles.IsUserInRole("Mozo"))
            {
                NavigationMenuMozo.Visible = true;
            }
            else if (Roles.IsUserInRole("Cajero"))
            {
                NavigationMenuCajero.Visible = true;
            }
           
            else if (Roles.IsUserInRole("Cliente"))
            {
                NavigationMenuInvitado.Visible = true;
            }
            else
            {
                NavigationMenuVisita.Visible = true;
            }

        }
    }
}
